DIR=$1
cd $DIR
FILES=`ls *.spudd`
for FILE in $FILES
do
	echo $FILE
	rm -f tmp
	sed '$d' $FILE > tmp
	echo "horizon 1.0">>tmp
	rm -f $FILE
	mv tmp $FILE 
done
